package com.cqfae.deploycentral.app.web.vo;

import com.cqfae.deploycentral.app.base.BaseConstants;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by YANGHENG940 on 2017/8/1.
 */
public class DeployHistoryVo implements Serializable {

    private String reportCode;

    private String appName;

    private String env;

    private String tag;

    private Integer deployStatus;

    private String deployStatusStr;

    private String deployStatusName;

    private String buildLogUrl;

    private Integer buildId;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer executePercent;

    private String progressColor;

    public DeployHistoryVo(Integer deployStatus) {
        this.deployStatusName = BaseConstants.getConstantsCodeMap().get(String.valueOf(deployStatus));
    }

    public String getReportCode() {
        return reportCode;
    }

    public void setReportCode(String reportCode) {
        this.reportCode = reportCode;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Integer getDeployStatus() {
        return deployStatus;
    }

    public void setDeployStatus(Integer deployStatus) {
        this.deployStatus = deployStatus;
    }

    public String getDeployStatusName() {
        return deployStatusName;
    }

    public void setDeployStatusName(String deployStatusName) {
        this.deployStatusName = deployStatusName;
    }

    public String getBuildLogUrl() {
        return buildLogUrl;
    }

    public void setBuildLogUrl(String buildLogUrl) {
        this.buildLogUrl = buildLogUrl;
    }

    public Integer getBuildId() {
        return buildId;
    }

    public void setBuildId(Integer buildId) {
        this.buildId = buildId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getExecutePercent() {
        return executePercent;
    }

    public void setExecutePercent(Integer executePercent) {
        this.executePercent = executePercent;
    }

    public String getDeployStatusStr() {
        return deployStatusStr;
    }

    public void setDeployStatusStr(String deployStatusStr) {
        this.deployStatusStr = deployStatusStr;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getProgressColor() {
        return progressColor;
    }

    public void setProgressColor(String progressColor) {
        this.progressColor = progressColor;
    }
}
